package com.loong.system.controller.backend;

import com.loong.common.mvc.BaseBackendController;
import com.loong.common.rest.Result;
import com.loong.system.common.backend.param.SystemFeedbackQueryParam;
import com.loong.system.handler.SystemFeedbackHandler;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 处理后台用户反馈相关请求的controller
 */
@RestController
@RequestMapping("manage/system/feedback")
public class SystemFeedbackController extends BaseBackendController {

    @Resource
    private SystemFeedbackHandler feedbackHandler;

    /**
     * 分类查询反馈信息
     * @param queryParam 查询参数
     * @return 响应的结果
     */
    @PostMapping("pageQuery/feedbackList")
    public Result pageQueryFeedback(SystemFeedbackQueryParam queryParam){
        return handlerExecutor.execute(() -> feedbackHandler.pageQueryFeedback(queryParam));
    }

}
